<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--字符串列表-->
<ul th:each="str:${strList}">
    <span th:text="${str}"></span>
</ul>

<!--对象列表-->
<table  bgcolor="#ffe4c4" border="1">
    <tr th:each="item:${departmentList}">
        <td th:text="${item.id}"></td>
        <td th:text="${item.name}"></td>
        <td th:text="${item.sn}"></td>
    </tr>
</table>
</body>
</html>